/**   
 * @Title: QuestionService.java 
 * @Package cn.edu.cdtu.healthserver.service 
 * @Description: TODO 
 * @author  
 * @date 
 * @version V0.0   
 */
package cn.edu.cdtu.healthserver.service;

import java.util.List;

import cn.edu.cdtu.healthserver.domain.Question;
import cn.edu.cdtu.healthserver.domain.Test;

/** 
 * @ClassName: QuestionService 
 * @Description: TODO
 * @author 
 * @date 
 *  
 */
public interface QuestionService {
	
	/**
	 * 
	 * @Title: getQuestions 
	 * @Description: TODO
	 * @return List<Question>
	 * @throws 
	 *
	 * @param test
	 * @param listAvailable
	 * @return
	 */
	public List<Question> getQuestions(Test test, boolean listAvailable);
	/**
	 * 
	 * @Title: addQuestion 
	 * @Description: TODO
	 * @return String
	 * @throws 
	 *
	 * @param test
	 * @param question
	 * @return
	 */
	public String addQuestion(Test test, Question question);
	/**
	 * 
	 * @Title: updateQuestion 
	 * @Description: TODO
	 * @return String
	 * @throws 
	 *
	 * @param question
	 * @return
	 */
	public String updateQuestion(Question question);
	/**
	 * 
	 * @Title: setAvailable 
	 * @Description: TODO
	 * @return String
	 * @throws 
	 *
	 * @param question
	 * @param available
	 * @return
	 */
	public String setAvailable(Question question, boolean available);

}
